package com.cby.android.library.base

import com.cby.android.library.base.callback.*
import com.kingja.loadsir.core.LoadSir

/**
 * @description: LoadConfigCenter
 * @author: ChenBaoYang
 * @createDate: 2022/4/28 11:03 上午
 */
object LoadConfigCenter {

    fun initLoadSirConfig() {
        LoadSir.beginBuilder()
            .addCallback(ErrorCallback())
            .addCallback(EmptyCallback())
            .addCallback(LottieLoadingCallback())
            .addCallback(TimeoutCallback())
            .addCallback(CustomCallback())
            .setDefaultCallback(LottieLoadingCallback::class.java)
            .commit()
    }

}